<%-- 
    Document   : left
    Created on : 27/05/2010, 07:51:54 PM
    Author     : Damc
--%>
<%
HttpSession sesion = request.getSession();
if(sesion.getAttribute("usuario")!=null){
    sesion.removeAttribute("usuario");
    sesion.invalidate();
}
String message = (String)request.getAttribute("message");
if (message == null){message = "";}
%>
<div id="left" class="clear-block">
        <!parte 1>
        <div align="left" >
            <h2 align="center">Men&uacute; Principal</h2>
            <p align="center">Bienvenido: <b>Invitado</b></p>
            <ul>
                <li><form name="home" method="post" action="navigationServlet">
                    <input name="target" type="hidden" value="home">
                    <a style="cursor:pointer" onclick="document.home.submit();" title="Volver al inicio" class="leftLinks">Inicio</a></form></li>
                <li><a href="registro.jsp" class="leftLinks">Registrarse</a></li>
                <li><a href="contacto.jsp" class="leftLinks">Cont&aacute;ctenos</a></li>
                <li><a href="about.jsp" class="leftLinks">Acerca de FuTurismo</a></li>
            </ul>            
        </div>
        <hr>
        <div align="center">
      Iniciar Sesi&oacute;n
        <form name="formLogin" onSubmit="passwd.value = hex_md5(pass.value);" method="post" action="sessionServlet">
            <table align="center">
                <tr><td>Login:</td><td><img src="archivos/icons/users.png" width="20" height="20"></td><td><input name="login" type="text" value="" maxlength="45"></td></tr>
                <tr><td>Password:</td><td><img src="archivos/icons/padlock.png" width="20" height="20"></td><td><input name="pass" type="password" value="" maxlength="45"></td></tr>
                <input name="passwd" type="hidden"><input name="action" type="hidden" value="login">
                <tr><td colspan="3"><p>seleccione su rol:</p></td></tr>
                <tr><td colspan="3" align="center">
                    <input type="radio" name="role" id="radioAdmin" value="admin" /><label for="radioAdmin">Administrador</label>
                    <input type="radio" name="role" id="radioClient" value="client" checked /><label for="radioClient">Cliente</label></td>
                </tr>
                <tr><td colspan="3" align="center"><p><input name="botonLogin" type="submit" value="Iniciar Sesion" style="cursor:pointer" /></p></td>
                </tr>
            </table>
            </form>
              <font color="#990000"><%=message%></font>
        </div>
        <hr>
      <!parte 2>
      <div align="left" >
          <h2 align="center">Men&uacute; B&uacute;squeda</h2>
          <table>
              <tr><td><img src="archivos/icons/hotel.png" alt="Hoteles" width="20" height="20"></td>
                  <td><form name="hotels" method="post" action="navigationServlet">
                      <input name="target" type="hidden" value="searchHotels">
                      <a style="cursor:pointer" onclick="document.hotels.submit();" title="Busca los mejores hoteles" class="leftLinks">Hoteles</a></form>
              </td></tr>
              <tr><td><img src="archivos/icons/restaurant.png" alt="Restaurantes" width="20" height="20"></td>
                  <td><form name="restaurants" method="post" action="navigationServlet">
                      <input name="target" type="hidden" value="searchRestaurants">
                      <a style="cursor:pointer" onclick="document.restaurants.submit();" title="Busca los mejores restaurantes" class="leftLinks">Restaurantes</a></form>
                  </td></tr>
              <tr><td><img src="archivos/icons/theater.png" alt="Teatros" width="20" height="20"></td>
                  <td><form name="theaters" method="post" action="navigationServlet">
                      <input name="target" type="hidden" value="searchTheaters">
                      <a style="cursor:pointer" onclick="document.theaters.submit();" title="Busca las mejores obras en los mejores teatros" class="leftLinks">Teatro</a></form>
                  </td></tr>
              <tr><td><img src="archivos/icons/flight.png" alt="Vuelos" width="20" height="20"></td>
                  <td><form name="flights" method="post" action="navigationServlet">
                      <input name="target" type="hidden" value="searchFlights">
                      <a style="cursor:pointer" onclick="document.flights.submit();" title="Busca los vuelos mas economicos" class="leftLinks">Aerolineas</a></form>
                  </td></tr>
          </table>
        </div>      
</div>